Current Location: Home> Function Categories> log10

log10

Logarithm with base 10
Name:log10
Category:math
Programming Language:php
One-line Description:Logarithm with base 10.

Definition and usage

log10() has a logarithm with base 10.

Example

In this example, we apply the log10() function to different numbers:

 <?php
echo ( log10 ( 2.7183 ) ) ;
echo ( log10 ( 2 ) ) ;
echo ( log10 ( 1 ) ) ;
echo ( log10 ( 0 ) ) ;
echo ( log10 ( - 1 ) ) ;
?>

Try it yourself

grammar

 log10 ( x )
parameter describe
x Required. A number.

illustrate

Returns the logarithm of parameter x with base 10.

Similar Functions
  • Natural logarithm log

    log

    Naturallogarithm
  • Convert decimal to binary decbin

    decbin

    Convertdecimaltobina
  • Convert angle to radians deg2rad

    deg2rad

    Convertangletoradian
  • Sine sin

    sin

    Sine
  • Antihyperbolic cosine acosh

    acosh

    Antihyperboliccosine
  • Convert hexadecimal to decimal hexdec

    hexdec

    Converthexadecimalto
  • Find the minimum value min

    min

    Findtheminimumvalue
  • Round floating point numbers round

    round

    Roundfloatingpointnu
Popular Articles